package com.yzyz.dao;

import org.springframework.jdbc.core.JdbcTemplate;


public interface IBaseDao {
	
	int save(Object object);
	
	void update(Object object);
	
	int delete(int id);
	
	Object get(int id);
	
	void setJdbcTemplate(JdbcTemplate jdbcTemplate);
	
	/**
	 * 
	 * @param id
	 * @param available
	 * @return number of effected rows 
	 */
	int updateAvailable(int id, boolean available);
	
	/**
	 * @param ownerId
	 * @return
	 */
	int getCount(int ownerId);	

	
}
